<?php
class NguoiDung 
{
    /* //ten table
   protected $_name= "user";
      //ten primarykey trong table
   protected $_primary= "idUser";
	*/  
	
	function getListUser(){
        $query='SELECT * FROM users';
        $rs=$this->db->fetchAll($query);
        return $rs;
    }	
  /* public function getItem($id)
   {
      $result=$this->find($id)->toArray();
      return $result;
   }*/
/*

class User{
	
	private $db=null;
	private $config_site=null;
	
	function __construct(){
		$this->db=Zend_Registry::get('db');	
		$this->config_site=Zend_Registry::get('config_site');
	}
	
	function __destruct(){
		unset($this->db);
	}
	

	function getListUser(){
        $query='SELECT * FROM users';
        $rs=$this->db->fetchAll($query);
        return $rs;
    }	
    function getListEmail($email){
        $query="SELECT * FROM users WHERE email = '$email'";
        $rs=$this->db->fetchAll($query);
        return $rs;
    }
	class Form_Myform extends Zend_Form{

	
public function form1($variable){
   $username = new Zend_Form_Element_Text('username', array('label'=>'User Name :'));
   $this->addElement($username);
   //xu li voi tham so
   return $this;
   }
    
	function getUserById($user_id){
        $user_id=intval($user_id);
		$SQL="SELECT * FROM users WHERE id=?";
		$rs=$this->db->fetchRow($SQL, array ($user_id));
		return $rs;
	}    
	*/
	

}

?>
